Previous Book Contents Book Index Next

Inside Macintosh: Programming With MRJToolkit /
Chapter 2 - MRJToolkit Reference / Application-Defined Methods
The MRJOpenDocumentHandler Interface /


handleOpenFile

Handles opening a document file.

public void handleOpenFile (File fileName);
fileName
The name of the file to be opened.
DISCUSSION
This application-defined method is called when a document needs to be opened from the Finder. For example, this situation occurs when the user selects an Open menu item in the Finder or if the user double-clicks a file that bears the application's creator. You must register the method name by calling the registerOpenDocumentHandler method (page 44) when initializing the application. The handleOpenFile method is only useful if you have packaged your Java application using JBindery.

SEE ALSO
The registerOpenDocumentHandler method (page 44).


Previous Book Contents Book Index Next

© Apple Computer, Inc.
12 NOV 1997